package com.shkco.service.impl;

import com.shkco.mapper.UserMapper;
import com.shkco.service.IUserService;
import com.shkco.domain.User;
import com.shkco.result.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAllUser() {
        return userMapper.findAllUser();
    }

    @Override
    public void update(User user) {
        userMapper.update(user);
    }

    @Override
    public User findById(Long id) {
        return userMapper.findById(id);
    }
}
